//
//  HMShoppingCar.h
//  HowToDo
//
//  Created by 宋轩 on 17/1/6.
//  Copyright © 2017年 KY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HMShoppingCarModel.h"

@interface HMShoppingCarTool : NSObject

@property (nonatomic, strong) NSMutableArray *modelArray;

+ (instancetype)sharedShoppingCarTool;

/**
 此方法在选中购物车时调用资源id

 @param resource_id     资源id
 @param imageUrl        图片URL
 @param name            标题名字
 @param content         资源简介
 @param enclosure       音频时长
 @param price           价格
 */
- (void)getShoppingCarDataWithID:(NSString *) resource_id andImageUrl:(NSString *)imageUrl andName:(NSString *)name andContent:(NSString *)content andEnclosure:(NSString *)enclosure andPrice:(NSString *)price;


/**
 此方法在取消购物车时调用

 @param resource_id 资源id
 */
- (void)removeShoppingCarDataWithID:(NSString *) resource_id;


//返回购物车数量
- (NSInteger)getShoppingCarCount;

@end
